package com.ruoyi.web.controller.xcx;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.ATrain;
import com.ruoyi.system.domain.ATrainInfor;
import com.ruoyi.system.service.IATrainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 培训类别Controller
 *
 * @author ruoyi
 * @date 2024-05-29
 */
@RestController
@RequestMapping("/xcx/aTrain")
public class XcxATrain extends BaseController {
    @Autowired
    private IATrainService aTrainService;

    /**
     * 查询培训类别列表
     */
    @GetMapping("/xcxList")
    public AjaxResult xcxList(ATrain aTrain)
    {
        return success(aTrainService.selectATrainXcxList(aTrain));
    }

    /**
     * 核对 密码
     */
    @GetMapping("/checkTrain")
    public AjaxResult checkWord(ATrainInfor aTrainInfor)
    {
        return success(aTrainService.checkTrain(aTrainInfor));
    }
}
